package cn.zhaozhiqi.remote.api;

import cn.zhaozhiqi.constants.Constants;
import cn.zhaozhiqi.remote.dto.DriverSummaryDto;
import cn.zhaozhiqi.remote.fallback.DriverFeignClientFallbackFactory;
import cn.zhaozhiqi.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = Constants.Remote.SERVICE_DRIVER,fallbackFactory = DriverFeignClientFallbackFactory.class)
public interface IDriverFeignClient {
    /**
     * 查询司机今日投诉次数和今日取消订单数
     * @param
     * @return
     */
    @PostMapping("/driver/{id}")
    JSONResult<DriverSummaryDto> getDriverSummery(@PathVariable("id") Long id);


}
